
/**
 * copyright(c) 2013 www.jiongshibaoliao.com, All Rights Reserved.
 * project: jiongshibaoliao 
 * author: 曾帅
 * date: 2013-12-29 上午11:50:49
 * version: v1.0
 */

package com.jiongshibaoliao.util;

/**
 * @project jiongshibaoliao
 * @author 曾帅 
 * @version 1.0
 * @date 2013-12-29 上午11:50:49   
 */

public class NumberUtils {

	/**
	 * 冒泡排序
	 * @author 曾帅
	 * @version 1.0
	 * @date 2013-12-29 上午11:51:01
	 * @param targetArr
	 * @return String[]
	 */
	public static String[] bubbleSort(String[] targetArr) {
		String temp ;
		for (int i = 0; i < targetArr.length; i++) {
			for (int j = i; j < targetArr.length; j++) {
				if (Integer.parseInt(targetArr[i]) > Integer.parseInt(targetArr[j])) {
					 temp = targetArr[i];
					 targetArr[i] = targetArr[j];
					 targetArr[j] = temp;
				}
			}
		}
		
		return targetArr;
	}
}
